from model.db import reservoir_sensitivity
# from model.db.user_model import auth_group_permission
from util.exception_handlers import UserNoPermission


# def check_permission(url_scope, group_id):
#     permission = reservoir_sensitivity.query(auth_group_permission).filter_by(
#         codename=url_scope).first()
#     if permission is not None and permission.group_id != group_id:
#         raise UserNoPermission
